package com.eco.fanliapp.service;

import com.eco.fanliapp.entity.AppCompany;

public interface IUserCashschemeService
{

	/**
	 * 查询所属公司
	 * @param userId
	 * @return
	 */
	public AppCompany findCompany(Long userId);

	/**
	 * 计算所属佣金
	 * @param userId
	 * @param commission
	 * @return
	 */
	 public Integer getCommissionRate(Long userId, double commission);

	/**
	 * 计算是否符合提现规则
	 * @param userId
	 * @param 
	 * @return
	 */
	//boolean  isUserCash(Long userId, double cashMoney);
	 public Object getSheme(Long userId, double commission);

	/**
	 * 计算是否符合提现规则
	 * @param userId
	 * @param
	 * @return
	 */
	//boolean  isUserCash(Long userId, double cashMoney);
	public Object getShemeNew(Long userId, double commission);

	public AppCompany findCompanyAll();
}
